<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-else-if 指令的使用</title>
</head>
<body>
<div id="app">
  <div v-if="lang==='eng'">English</div>
  <div v-else-if="lang==='chs'">中文</div>
  <div v-else>没有匹配任何语言</div>
</div>
<script type="module">
  import {createApp, ref} from "../../../../../js/vue.esm-browser.js";

  const app = createApp({
    setup(){
      let lang = ref("chs")
      return {
        lang
      }
    }
  })
  app.mount("#app")
</script>
</body>
</html>